//
//  GNDiscoverViewController.swift
//  SinaWeChat
//
//  Created by mac on 15/12/5.
//  Copyright © 2015年 mac. All rights reserved.
//

import UIKit

class GNDiscoverViewController: GNVistorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        //如果没有登录,就设置访客视图的内容
        if !userLogin{
            vistorView?.setVistorInfo("visitordiscover_image_message", message: "登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过")
            
            return
        }

      setupUI()
    }
    
    func setupUI(){
        
        
        let searchView = GNDiscoverSeacherView.searchView()
        
        searchView.frame = CGRectMake(0, 0, UIScreen.mainScreen().bounds.width, 35)
        
        //设置成titleview
        navigationItem.titleView = searchView
        
        tabBarItem.badgeValue = "哈哈"
        
    }
    

}
